<?php

namespace app\store\controller\group;

use app\store\controller\BaseController;
use app\store\service\GroupOrderService;
use think\facade\View;

class OrderController extends BaseController
{
    public function index()
    {
        $param = $this->request->param();
        $list = GroupOrderService::getGroupOrderList($param);

        return View::fetch('',['list' => $list]);
    }

    public function read()
    {
        $order_id = $this->request->param('order_id/d');

        $row = GroupOrderService::findGroupOrder($order_id);

        return View::fetch('',['row' => $row]);
    }
}